package mse.eai.jbpm.lotteryResultsProcess;

import java.io.Serializable;
import java.util.ArrayList;

public class WinnersList implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7005495415167727554L;

	public ArrayList<Winner> lista;
	
	@Override public String toString() {
		
		String res = "";
		
		StringBuilder builder = new StringBuilder("");
		for (Winner win: lista) 
			builder.append(win.uid + " won " + win.amount + " ; ");
		
		return "<" + this.getClass().getName() + " -> " + builder.toString() + ">";
		
	}
	
}
